<template>
	<view class="container">
		<view class="ins">基本信息</view>
		<view class="ins-1">
			<view class="ins-2">
				<view>盘点单号</view>
				<view class="inds-3">保存时自动生成 </view>
			</view>
			<view class="ins-2">
				<view>盘点货品</view>
				<view class="ins-2-1">河北精品大白菜、吉林带泥胡萝卜，吉林带泥胡萝卜，吉林带泥胡萝卜 </view>
			</view>
			<view class="ins-2">
				<view>附件信息</view>
				<view class="inds-3">暂无</view>
			</view>
			<view class="ins-2">
				<view>备注信息</view>
				<view class="inds-3">暂无</view>
			</view>
		</view>
		<view class="ins">盘点产品(共<span class="sum1">{{sum}}</span>个种类)</view>
		<scroll-view :scroll-top="scrollTop" scroll-y="true" class="scroll-Y">
			<view class="goods" v-for="(item,index) in list" :key="index">
				<view class="goodsHeader">
					<view>货品名称:河北精品大白菜</view>
					<view>删除</view>
				</view>
				<view class="goodsCode">
					<view class="bl">
						<view>仓库货位：</view>
						<view class="bl01">货位01</view>
					</view>
					<view class="bl" style="margin-left: 30rpx;">
						<view>货品条码：</view>
						<view class="bl02">TM-202502010000</view>
					</view>
				</view>
				<view class="goodsCode">
					<view class="bl">
						<view>批次号号：</view>
						<view class="bl01">123123</view>
					</view>
					<view class="bl" style="margin-left: 30rpx;">
						<view>账面库存：</view>
						<view class="bl02">200000</view>
					</view>
				</view>
				<view class="goodsCode">
					<view class="bl">
						<view>实际库存：</view>
						<view class="bl01">
							<input style="font-size: 24rpx;" placeholder-style="font-size: 24rpx;" type="text"  placeholder="请输入库存" />
						</view>
					</view>
					<view class="bl" style="margin-left: 30rpx;">
						<view>盈亏数量：</view>
						<view class="bl02">13</view>
					</view>
				</view>
				<view class="goodsCode">
					<view class="bl">
						<view>产品单价：</view>
						<view class="bl01">2.00</view>
					</view>
					<view class="bl" style="margin-left: 30rpx;">
						<view>合计金额：</view>
						<view class="bl02">300.00</view>
					</view>
				</view>
				<view class="line"></view>
			</view>
			<view class="and">新增货品</view>
		</scroll-view>
		<view class="submit">
			<u-button type="primary" :loading='loading' :custom-style="customStyleBtn1"
				@click="submit(item)">确认</u-button>
		</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				customStyleBtn1: {
					width: '690rpx',
					height: '90rpx',
					borderRadius: '45rpx',
					background: "linear-gradient(0deg, #177A77, #4B9C6D)",
					fontSize: '28rpx',
					fontWeight: 400,
					color: '#ffffff',
					border: 'none'
				},
				sum: 2,
				list: [1, 2]
			}
		}
	}
</script>

<style scoped>
	.and{
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: center;
		font-size: 26rpx;
		color: #177A77;
	}
	.submit{
		width: 100%;
		height: 120rpx;
		display: flex;
		align-items: center;
	}
	.scroll-Y {
		width: 100%;
		height: calc(100vh - 650rpx);
	}

	.line {
		width: 100%;
		height: 2rpx;
		background-color: #EBEBEB;
		margin: 30rpx 0 0rpx 0;
	}

	.goodsCode {
		display: flex;
		align-items: center;
		margin-bottom: 18rpx;
	}

	.bl {
		height: 60rpx;
		display: flex;
		align-items: center;
		font-size: 24rpx;
	}

	.bl01 {
		width: 218rpx;
		height: 60rpx;
		background: #FFFFFF;
		border: 1px solid #EBEBEB;
		display: flex;
		align-items: center;
		padding: 0 17rpx;
		box-sizing: border-box;
		font-size: 24rpx;
	}

	.bl02 {
		width: 218rpx;
		height: 60rpx;
		background: #DDDDDD;
		border: 1px solid #EBEBEB;
		/* display: flex;
		align-items: center; */
		line-height: 60rpx;
		padding: 0 17rpx;
		box-sizing: border-box;
		font-size: 24rpx;
		color:#999999;
		 text-overflow: ellipsis;
		    overflow: hidden;
		    word-break: break-all;
		    white-space: nowrap;
	}

	.goodsHeader {
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		font-size: 24rpx;
	}

	.goods {
		width: 100%;
		min-height: 400rpx;
		display: flex;
		flex-direction: column;
		background-color: #FFFFFF;
		padding: 0 27rpx;
		box-sizing: border-box;
	}

	.sum1 {
		color: #177A77;
		border-bottom: 1rpx solid #177A77;
		font-size: 24rpx;
	}

	.inds-3 {
		color: #999999;
	}

	.ins-2-1 {
		width: 350rpx;
		height: 30rpx;
		text-overflow: ellipsis;
		overflow: hidden;
		word-break: break-all;
		white-space: nowrap;
		color: #999999;
	}

	.ins-2 {
		width: 100%;
		height: 100rpx;
		display: flex;
		align-items: center;
		justify-content: space-between;
		padding: 0 27rpx;
		box-sizing: border-box;
		border-bottom: 1rpx solid #EEEEEE;
	}

	.ins-1 {
		width: 100%;
		min-height: 300rpx;
		display: flex;
		flex-direction: column;
		font-size: 24rpx;
	}

	.ins {
		width: 100%;
		height: 60rpx;
		font-size: 24rpx;
		color: #333333;
		padding: 0 38rpx;
		box-sizing: border-box;
		display: flex;
		align-items: center;
		background-color: #F8F8F8;
	}

	.container {
		width: 100%;
		height: 100vh;
		display: flex;
		flex-direction: column;
		align-items: center;
		background-color: #FFFFFF;
	}
</style>